<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@page session="false"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

			<h2>Atualizar contato</h2>
			<form:form method="post" action="atualizar" modelAttribute="contato" cssClass="form-horizontal form">

				<form:hidden  path="id" cssClass="form-control"/>
				
				<div class="form-group">
					<form:label  path="nome" cssClass="col-md-2 control-label">Nome: </form:label>
					<div class="col-md-8">
						<form:input  path="nome" cssClass="form-control"/>
						<form:errors path="nome" cssClass="erro"/>
					</div>
				</div>
			
				<div class="form-group">
					<form:label  path="email" cssClass="col-md-2 control-label">E-mail: </form:label>
					<div class="col-md-6">
						<form:input  path="email" cssClass="form-control"/>
						<form:errors path="email" cssClass="erro"/>
					</div>
				</div>
			
				<div class="form-group">
					<form:label  path="telefone" cssClass="col-md-2 control-label">Telefone: </form:label>
					<div class="col-md-4">
						<form:input  path="telefone" cssClass="form-control"/>
						<form:errors path="telefone" cssClass="erro"/>
					</div>
				</div>
			
				<div class="form-group">
					<form:label  path="endereco" cssClass="col-md-2 control-label">Endereco: </form:label>
					<div class="col-md-8">
						<form:input  path="endereco" cssClass="form-control"/>
						<form:errors path="endereco" cssClass="erro"/>
					</div>
				</div>
			
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<input type="submit" value="Atualizar" class="btn btn-large btn-primary"/>
						<a href="/agendaweb/pri/contato/listar" class="btn btn-large btn-warning">Cancelar</a>
					</div>
				</div>
			</form:form>